package com.jboa.dao.impl;

import java.util.List;

import javax.annotation.Resource;

import org.hibernate.SessionFactory;
import org.springframework.orm.hibernate3.support.HibernateDaoSupport;
import org.springframework.stereotype.Repository;

import com.jboa.dao.IPositionDAO;
import com.jboa.vo.SysPosition;
@Repository("positionDao")
public class PositionDAOImpl extends HibernateDaoSupport implements IPositionDAO {
	
	/**
	 * 获取所有信息
	 */
	public List<SysPosition> getAll() {
		return super.getHibernateTemplate().find("from SysPosition");
	}

	/**
	 * 根据id查询职位信息
	 */
	public SysPosition getById(Long id) {
		return super.getHibernateTemplate().get(SysPosition.class,id);
	}
	
	

}
